import request from '@/utils/request'

// 查询牛奶会员列表
export function listMilkMember (query) {
  return request({
    url: '/system/milkMember/list',
    method: 'get',
    params: query
  })
}

// 查询牛奶会员详细
export function getMilkMember (id) {
  return request({
    url: '/system/milkMember/' + id,
    method: 'get'
  })
}

// 新增牛奶会员
export function addMilkMember (data) {
  return request({
    url: '/system/milkMember',
    method: 'post',
    data: data
  })
}

// 修改牛奶会员
export function updateMilkMember (data) {
  return request({
    url: '/system/milkMember',
    method: 'put',
    data: data
  })
}

// 删除牛奶会员
export function delMilkMember (id) {
  return request({
    url: '/system/milkMember/' + id,
    method: 'delete'
  })
}
